import 'package:dio/dio.dart';
import 'package:sainbainu/common/http/http.dart';

class FeedbackApi {
  /// 反馈列表
  Future<Map<String, dynamic>> list(
    Map<String, dynamic> params,
  ) async {
    Response res = await Http.get(
      '/api/customer/feedback/list',
      params: params,
    );
    return res.data;
  }

  /// 新增反馈
  Future<Map<String, dynamic>> add(Map data) async {
    Response res = await Http.post('/api/customer/feedback/add', data: data);
    return res.data;
  }
}
